package com.victor.zjbj_android.daichuli;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.victor.zjbj_android.R;
import com.victor.zjbj_android.yinhuan.fragment.Xianshizhenggai2Fragment;

/**
 * A simple {@link Fragment} subclass.
 */
public class DaiChuliXianShiZhengGaiFragment extends Fragment {

    private Button btn_zhidingcuoshi;
    public DaiChuliXianShiZhengGaiFragment() {
        // Required empty public constructor
    }

    // TODO: Rename and change types and number of parameters
    public static DaiChuliXianShiZhengGaiFragment newInstance(int state) {
        DaiChuliXianShiZhengGaiFragment fragment = new DaiChuliXianShiZhengGaiFragment();
        Bundle bundle = new Bundle();
        bundle.putInt("state", state);
        fragment.setArguments(bundle);
        return fragment;
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_dai_chuli_xian_shi_zheng_gai, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        btn_zhidingcuoshi=view.findViewById(R.id.btn_zhidingcuoshi);
        view.findViewById(R.id.btn_bohui).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),BoHuiActivity.class));
            }
        });
        btn_zhidingcuoshi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),CuoShiFanKuiActivity.class));
            }
        });
        view.findViewById(R.id.iv_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                getActivity().finish();
            }
        });

    }
}
